<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"  >
    <div class="top_left_box"> </div>
    <div class="center_left_box"  >

        <h:form rendered="#{not customerBean.login}" >
            <div class="box_title"><span>Login</span> </div>

            <div class="form">
                <div class="form_row">
                    <h:outputLabel styleClass="left" value="#{msg.loginform_username}" for="txtUsername" />
                    <p:inputText id="txtUsername" size="15" value="#{customerBean.username}" />
                </div>
                <div class="form_row">
                    <h:outputLabel styleClass="left" value="#{msg.loginform_password}" for="txtPassword" />
                    <p:password feedback="false" id="txtPassword" size="15" value="#{customerBean.password}"  />
                </div>
                 <div class="form_row">
                     <p:selectBooleanCheckbox value="1"  />
                     <h:outputText value="#{msg.loginform_rememberMe}" />
                </div>
                <div class="form_row">
                    <p:commandButton value="#{msg.loginform_loginbutton}" action="#{customerBean.loginAction}" />
                </div>
                <h:link value="#{msg.loginform_register}" outcome="register" /> #{msg.loginform_or}
                <h:link value="#{msg.loginform_forgotPassword}" outcome="forgotPassword" />
            </div>
        </h:form>
    </div>
    <div class="bottom_left_box"> </div>
</ui:composition>